package com.woniuxy.dao;
import com.woniuxy.entity.Role;
import com.woniuxy.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Set;

/**
 * @ClassName RoleDao
 * @Description TODO
 * @Author LI.hh
 * @Date 2022/9/3 14:05
 * @Version 1.0
 */
@Mapper
public interface RoleDao {
    int findCountByNameOrId(Role role);
    List<Role> selectAll();
    int addUser(Role role);
    int updateUser(Role role);
    int deleteUserById(int id);
    List<Role> findUserByName(String name);
    List<Role> search(String name);
    Set<String> findOneByUserName(String username);
}
